package com.mscsoft.brainpower.server.dao;

import com.mscsoft.brainpower.server.domain.GameFile;

import org.apache.ibatis.annotations.*;

@Mapper

public interface MusicScoreFileDao {
    @Select("select musicscorename fileName,musicscore data from musicscore where musicscorename=#{musicscorename}")
    GameFile queryMusicScoreFileByMusicName(@Param("musicscorename") String musicscorename);

    @Insert("INSERT INTO musicscore (musicscorename,musicscore) VALUES(#{musicscorename},#{musicscore})")
    void insertNewMusicScore(@Param("musicscorename") String musicscorename,@Param("musicscore") byte[] musicscore);
}
